import fetch from '@/common/util/fetch'

export function addUser(params) {
  return fetch({
    url: '/user/add',
    method: 'post',
    params
  })
}
export function updateUser(params) {
  return fetch({
    url: '/user/update',
    method: 'post',
    params
  })
}
export function getList(params) {
  return fetch({
    url: '/user/list',
    method: 'get',
    params
  })
}

export function getById(id) {
  return fetch({
    url: '/user/getById',
    method: 'get',
    params: { id }
  })
}
export function deleteUser(id) {
  return fetch({
    url: '/user/delete',
    method: 'post',
    params: { id }
  })
}
export function ess() {

}

